// my-homepage.less
.layout {
  padding: 15/32rem;
  width: 100%;
  box-sizing: border-box;
  // vote
  .vote {
    width: 100%;
    padding-top: 39/32rem;
    .vote-info {
      text-align: center;
      margin-bottom: 28/32rem;
      .vote-info-header {
        display: inline-block;
        .vote-info-header-left {
          width: 87/32rem;
          height: 87/32rem;
          border-radius: 50%;
          overflow: hidden;
          float: left;
          > img {
            width: 100%;
            height: 100%;
          }
        }
        .vote-info-header-right {
          float: left;
          margin-left: 27/32rem;
          text-align: left;
          > h2 {
            font-size: 28/32rem;
            margin-bottom: 11/32rem;
            margin-top: 6/32rem;
          }
          > p {
            font-size: 22/32rem;
          }
        }
      }
      .vote-info-num {
        padding: 18/32rem 0 1rem;
        border-top: 2px solid #D8D8D8;
        width: 100%;
        box-sizing: border-box;
        font-size: 20/32rem;
        > span {
          width: 32.6%;
          display: inline-block;
          > i {
            color: red;
          }
        }
      }
      .vote-info-text {
        width: 100%;
        background-color: #fff;
        padding: 27/32rem;
        font-size: 22/32rem;
        box-sizing: border-box;
        > span:first-of-type {
          color: #707070;
        }
        > span:last-of-type {
          color: #ABABAB;
        }
      }
    }
    .vote-btn {
      width: 100%;
      padding: 0 28/32rem;
      box-sizing: border-box;
      text-align: center;
      > button {
        width: 100%;
        height: 65/32rem;
        background-color: #617AF9;
        border-radius: 5px;
        color: #fff;
        font-size: 24/32rem;
      }
      > span {
        color: red;
        font-size: 22/32rem;
      }
    }
  }
  // works
  .works {
    width: 100%;
    margin-top: 76/32rem;
    > h3 {
      font-size: 23/32rem;
    }
    .works-box {
      width: 100%;
      padding: 10/32rem;
      box-sizing: border-box;
      background-color: #fff;
      > img {
        width: 33.33%;
        height: 8rem;
        display: block;
        border-radius: 5px;
        padding: 10/32rem;
        box-sizing: border-box;
        float: left;
      }
    }
    .works-vote {
      font-size: 22/32rem;
      padding: 26/32rem 11/32rem;
      border-bottom: 1px solid #DADADA;
      .works-vote-left {
        float: left;
        > span {
          display: block;
          > i {
            color: red;
          }
        }
      }
      .works-vote-right {
        width: 207/32rem;
        float: right;
        > .vote-right-img {
          width: 14%;
          height: 65/32rem;
          float: left;
          border-radius: 50%;
          > img {
            width: 65/32rem;
            height: 65/32rem;
            display: block;
            border-radius: 50%;
          }
        }
      }
    }
    > p {
      text-align: center;
      font-size: 26/32rem;
      margin: 30/32rem 0 42/32rem;
      > i {
        color: red;
      }
    }
    .list-btn-box {
      text-align: center;
      > .list-btn {
        display: inline-block;
        color: #fff;
        border-radius: 5px;
        background-color: red;
        padding: 10/32rem 1rem;
        font-size: 27/32rem;
        > span {
          font-family: SimSun;
          font-weight: bold;
        }
      }
    }
  }
  // message
  .message {
    width: 100%;
    padding-top: 54/32rem;
    margin-bottom: 5rem;
    .message-title {
      > h3 {
        font-size: 24/32rem;
        float: left;
        line-height: 52/32rem;
        margin-left: 14/32rem;
      }
      > .message-me {
        float: right;
        color: #617AF9;
        display: inline-block;
        border: 1px solid #617AF9;
        border-radius: 5px;
        font-size: 22/32rem;
        padding: 10/32rem 1rem;
      }
    }
    .message-box {
      background-color: #fff;
      border-radius: 3px;
      padding: 5/32rem 22/32rem;
      margin-top: 24/32rem;
      width: 100%;
      box-sizing: border-box;
      font-size: 22/32rem;
      .message-box-list {
        padding: 17/32rem 0;
        border-bottom: 1px solid #D0D0D0;
        > span:nth-of-type(2) {
          float: right;
          color: #B0B0B0;
        }
        > p {
          color: #000;
          margin-top: 14/32rem;
        }
      }
    }
  }
  // 参赛人员列表底部定位块
  .personnel-list-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 47/32rem;
    background-color: rgba(0,0,0,.7);
    box-sizing: border-box;
    > a {
      display: block;
      width: 244/32rem;
      height: 77/32rem;
      line-height: 77/32rem;
      text-align: center;
      color: red;
      border: 1px solid red;
      box-sizing: border-box;
      border-radius: 8px;
      font-size: 28/32rem;
      background-color: #fff;
      &:first-of-type {
        float: left;
      }
      &:last-of-type {
        float: right;
      }
      &:hover,&:focus {
        color: #fff;
        background-color: red;
      }
    }
  }
}
// message-inp
.message-inp {
  background-color: rgba(0,0,0,.5);
  padding: 45/32rem 15/32rem 34/32rem;
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  .message-inp-left {
    font-size: 24/32rem;
    color: #fff;
    float: left;
  }
  .message-inp-right {
    float: left;
    width: 393/32rem;
    height: 171/32rem;
    margin-left: 1rem;
    margin-bottom: 1rem;
    position: relative;
    textarea {
      width: 100%;
      height: 100%;
      padding: 16/32rem;
      box-sizing: border-box;
      border-radius: 5px;
      background-color: #F3F3F3;
      & + span {
        font-size: 18/32rem;
        color: #AFAFAF;
        position: absolute;
        bottom: .5rem;
        right: .5rem;
        i {
          color: #617AF9;
        }
      }
    }
  }
  .inp-sure {
    width: 211/32rem;
    height: 2rem;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    background-color: #617AF9;
    color: #fff;

  }
  .message-close {
    color: #fff;
    position: absolute;
    right: 28/32rem;
    top: 21/32rem;
  }
}

// share
#share {
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.4);
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 26/32rem;
  text-align: center;
  .share-allow {
    width: 104/32rem;
    height: 104/32rem;
    background: url("../images/share-allow.png") no-repeat center;
    background-size: 104/32rem 104/32rem;
    position: absolute;
    right: 1rem;
    top: 5/32rem;
  }
  p {
    margin: 111/32rem 112/32rem 10/32rem;
    & + span {
      font-size: 22/32rem;
    }
  }
}

// popup
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.3);
  display: none;
  .popup-box {
    width: 527/32rem;
    height: 763/32rem;
    background: url("../images/popup.png") no-repeat center;
    background-size: 527/32rem 763/32rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-55%);
    > #close {
      width: 60/32rem;
      height: 60/32rem;
      background: url("../images/close.jpg") no-repeat center;
      background-size: 60/32rem 60/32rem;
      position: absolute;
      top: 26/32rem;
      right: 24/32rem;
    }
    > h2 {
      font-size: 35/32rem;
      text-align: center;
      color: #000;
      margin: 50/32rem 0 25/32rem;
    }
    .redbag {
      width: 252/32rem;
      height: 371/32rem;
      background: url("../images/redbag.png") no-repeat center;
      background-size: 252/32rem 371/32rem;
      margin: 0 auto 1rem;
      text-align: center;
      #qrcode {
        > img {
          width: 218/32rem;
          height: 218/32rem;
          display: block;
          margin: 132/32rem auto 28/32rem;
        }
      }
    }
    dl {
      margin-left: 52/32rem;
      font-size: 26/32rem;
      line-height: 40/32rem;
      dt {
        color: #617AF9;
      }
      dd {
        font-size: 22/32rem;

      }
    }
  }
  .save-pic {
    width: 249/32rem;
    height: 51/32rem;
    line-height: 51/32rem;
    text-align: center;
    color: #000;
    display: block;
    background-color: #fff;
    border-radius: 5px;
    margin: 0 auto;
    font-size: 22/32rem;
    position: absolute;
    bottom: 40/32rem;
    left: 50%;
    transform: translateX(-50%);
  }
}
// 预览图片
#preview-img {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
  display: none;
  > img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
}
